package com.ethink.order.api.request;

import com.ethink.order.api.info.PurchaseOrderDetailInfo;
import io.swagger.v3.oas.annotations.Hidden;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

/**
 * @author default
 * @version 1.0.0
 * @ClassName SaleDemandOrderLockRequest.java
 * @Description
 * @createTime 2022年10月31日 20:49:00
 */
@Data
public class SaleDemandOrderLockRequest {

    @NotNull
    @Schema(description = "主键")
    private Long id;

    @NotEmpty(message = "采购报价单不能为空")
    @Schema(description = "采购订单源")
    private List<PurchaseOrderDetailInfo> item;

    @NotNull(message = "预计销售价(含税)不能为空")
    @Schema(description ="预计销售价(含税)")
    private BigDecimal exceptSalePriceTax;

    @NotNull(message = "预计销售价(不含税)不能为空")
    @Schema(description ="预计销售价(不含税)")
    private BigDecimal exceptSalePriceNoTax;

    @Schema(description ="预计销售价-本币(不含税)")
    private BigDecimal exceptSalePriceNoTaxLocal;

    @Schema(description ="预计销售价-本币(含税)")
    private BigDecimal exceptSalePriceTaxLocal;

    @Schema(description ="目标成本-本币")
    private BigDecimal targetCostLocal;

    @Schema(description = "采购报价均价",hidden = true)
    private BigDecimal averagePurchasePrice;

}
